package 适配器模式;

public class Hotel {
	// 旅馆中有一个德标的插口
	private DBSocketInterface dbSocket;

	public Hotel() {
	}

	public Hotel(DBSocketInterface dbSocket) {
		this.dbSocket = dbSocket;
	}

	public void setSocket(SocketAdapter socketAdapter) {
		this.dbSocket = socketAdapter;
	}

	// 旅馆中有一个充电的功能
	public void charge() {
		// 使用德标插口充电
		dbSocket.powerWithTwoRound();
	}

}
